import request from '@/utils/request'

// 查询巡检计划记录列表
export function listLanRecord(query) {
  return request({
    url: '/ar_check/lanRecord/list',
    method: 'get',
    params: query
  })
}

// 查询巡检计划记录详细
export function getLanRecord(recordId) {
  return request({
    url: '/ar_check/lanRecord/' + recordId,
    method: 'get'
  })
}

// 新增巡检计划记录
export function addLanRecord(data) {
  return request({
    url: '/ar_check/lanRecord',
    method: 'post',
    data: data
  })
}

// 修改巡检计划记录
export function updateLanRecord(data) {
  return request({
    url: '/ar_check/lanRecord',
    method: 'put',
    data: data
  })
}

// 删除巡检计划记录
export function delLanRecord(recordId) {
  return request({
    url: '/ar_check/lanRecord/' + recordId,
    method: 'delete'
  })
}
